package org.leiyang.entries;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * 数据记录对象
 */
@Data
@AllArgsConstructor
public class Record implements Comparable<Record> {

    private int id;

    private int inventory;

    private float price;

    @Override
    public int compareTo(Record o) {
        return Integer.compare(this.id, o.id);
    }
}
